package org.samcolon.springsecuritydemo1;

import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;

/**
 * @Description:
 * @author: Sam.zhang
 * @date: 2022/2/15 - 20:06
 */
public class MyAuthProvider implements AuthenticationProvider {
    /**
     * 权限效验
     * @param authentication
     * @return
     * @throws AuthenticationException
     */
    @Override
    public Authentication authenticate(Authentication authentication) throws AuthenticationException {
        return null;
    }

    @Override
    public boolean supports(Class<?> aClass) {
        return false;
    }
}
